package com.pan.api.config.impl;

import com.pan.api.config.ConfigUnit;
import com.pan.api.utils.PanApiDocXmlUtil;
import org.w3c.dom.Element;

//这里设单例
final class PathConfigUnit extends ConfigUnit<String> implements PanApiDocXmlUtil {
    public final static PathConfigUnit INSTANCE = new PathConfigUnit();
    @Override
    protected String createNewObjectInstance() {
        Element path = this.findFirst("base", "path");
        return path.getTextContent().strip();
    }
}
